@import "../global/global";

@keyframes show-sidebar {
  0% {
    right: 0;
  }

  100% {
    right: 50%;
  }
}

.ring-sidebar {
  position: fixed;
  z-index: 4;

  top: 0;
  left: 100%;
  width: 50%;
  height: 100%;

  padding-top: 2*$ring-unit;

  box-sizing: border-box;

  overflow: hidden;
  background: #FFF;
  transition: left 0.5s ease, visibility 0.5s;
  visibility: hidden;
}

.ring-sidebar_active {
  visibility: visible;
  left: 50%;
  animation: show-sidebar 0.5s 1;

  overflow: auto;
  box-shadow: -2px 0 4px 0 #BEBEBE;

  .ring-sidebar__i {
    transition: 0.5s ease-in;
    transform: rotate(180deg);
  }
}

.ring-sidebar__toggle-icon {
  color: $ring-dark-gray-color;
}

.ring-sidebar__avatar {
  float: left;
  width: 6*$ring-unit;
  height: 6*$ring-unit;
  object-fit: contain;
  padding: 0 2*$ring-unit 0 5*$ring-unit;
}

.ring-sidebar__title {
  margin: 0;
  padding-left: 5*$ring-unit;

  color: #222;
  vertical-align: middle;
  font-size: 3*$ring-unit;
  font-weight: normal;
  line-height: 28px;

  .tag-flag {
    vertical-align: bottom;
  }
}

.ring-sidebar__section {
  position: relative;
  margin-top: 3*$ring-unit;
  padding: 0 2*$ring-unit 0 5*$ring-unit;
}

.ring-sidebar__section-title {
  display: inline-block;
  font-size: $ring-font-size;
  font-weight: bold;
  color: $ring-text-color;
}

.ring-sidebar__section-text {
  font-size: $ring-font-size;
  color: $ring-text-color;
  line-height: 3*$ring-unit;

  &_multiline {
    padding: 4px 0 5px;
    line-height: normal;
  }
}

.ring-sidebar__section-roster {
  margin-top: $ring-unit;
}

.ring-sidebar__section-icon {
  position: absolute;
  display: block;
  left: 0;

  width: 5*$ring-unit;

  color: $ring-dark-gray-color;
  font-size: 12px;
  text-align: center;
}

.ring-sidebar__empty {
  margin-top: $ring-unit*2;
  text-align: center;
}

.ring-sidebar__empty-icon {
  font-size: 100px;
  color: $ring-gray-color;
}

.ring-sidebar__empty-description {
  margin-top: $ring-unit*2;
  color: $ring-dark-gray-color;
}
